package com.aloha.common.event;

import com.aloha.po.User;
import com.aloha.springframework.context.ApplicationContext;
import com.aloha.springframework.context.event.ApplicationContextEvent;

/**
 * @author DaiZhiHeng
 * @date 2023/7/26 19:46
 */
public class UserRegisterEvent extends ApplicationContextEvent {

    private final User user;

    public UserRegisterEvent(ApplicationContext source, User user) {
        super(source);
        this.user = user;
    }

    public User getUser() {
        return user;
    }
}

